<?php

class camel 
{
 private $_str = '';

 private function _uc($str)
 {
  $str = strtolower($str);
  return ucwords($str);
 }

 private function _clean($str)
 {
  $str = preg_replace('/[\W\n\r_]/', ' ', $str);
  $str = preg_replace('/\s+/', ' ', $str);
  return $str;
 } 

 private function _compact($str)
 {
  return preg_replace('/\s/', '', $str);
 }

 public function set($str)
 {
  $this->_str = $str;
 }
 
 public function get()
 {
  $str = $this->_clean($this->_str);
  $str = $this->_uc($str);
  $str = $this->_compact($str);
  return $str;
 }

 public static function myFunc($my_par)
 {
     return $my_par;
 }

}

    //  $x = new camel;
    //  $x->set('core/template.class.php');
    //  echo $x->get();
    // CoreTemplateClassPhp
    // echo camel::myFunc('value');







?>
